package com.ld.security.demo.listener;

import cn.hutool.core.lang.Console;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;
import org.springframework.stereotype.Component;

@Component
public class UserListener implements SessionListener {


    @Override
    public void onStart(Session session) {

        Console.log("访问:"+session.getId());


    }

    @Override
    public void onStop(Session session) {

    }

    @Override
    public void onExpiration(Session session) {

    }
}
